package acwing.lq.递归and递推;

import java.util.Scanner;

/**
 * 时间显示
 *
 * @author yang
 * @date 2021/12/8
 */
public class 时间显示 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        n /= 1000;
        n %= (3600 * 24);
        long hour = n / 3600;
        long minute = n % 3600 / 60;
        long s = n % 60;
        System.out.printf("%02d:%02d:%02d", hour, minute, s);
    }
}
